package com.github.data_manage.dao

import com.github.data_manage.domain.po.Role
import com.github.data_manage.domain.po.User
import java.util.*

/**
 *@author CHN
 *@since 2024-08-18 16:29
 */
interface UserDao: BaseDao<User> {

    fun findByName(name: String): Optional<User>

    fun removeAllByRole(role: Role): Int
}